package com.xmtlxx.wms.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import com.xmtlxx.wms.domain.vo.PutDtlVo;
import com.xmtlxx.system.domain.SysOss;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

/**
 * 上架任务明细业务对象 t_put_dtl
 *
 * @author xmtlxx
 * @date 2022-08-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("上架任务明细业务对象")
public class PutDtlBo extends BaseEntity {

    /**
     * 任务明细ID
     */
    @ApiModelProperty(value = "任务明细ID")
    private String id;

    /**
     * 上架任务ID
     */
    @ApiModelProperty(value = "上架任务ID", required = true)
    @NotBlank(message = "上架任务ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskId;

    /**
     * 物品编号
     */
    @ApiModelProperty(value = "物品编号", required = true)
    @NotBlank(message = "物品编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pno;

    /**
     * 物品名称
     */
    @ApiModelProperty(value = "物品名称", required = true)
    @NotBlank(message = "物品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 仓库ID
     */
    @ApiModelProperty(value = "仓库ID", required = true)
    @NotBlank(message = "仓库ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeId;

    /**
     * 库区ID
     */
    @ApiModelProperty(value = "库区ID", required = true)
    @NotBlank(message = "库区ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaId;

    /**
     * 库位ID
     */
    @ApiModelProperty(value = "库位ID", required = true)
    @NotBlank(message = "库位ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locatorId;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", required = true)
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    private String pics;

    /**
     * 上架员ID
     */
    @ApiModelProperty(value = "上架员ID")
    private Long operator;

    /**
     * 上架时间
     */
    @ApiModelProperty(value = "上架时间")
    private Date putTime;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String memo;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private Long nums;


    /**
     * 箱号
     */
    @ApiModelProperty(value = "箱号")
    private String boxNo;
    /**
     * 货箱ID
     */
    @ApiModelProperty(value = "货箱ID")
    private String boxId;
    @ApiModelProperty("财物入库编码")
    private String qrcode;


    /**
     * 是否封箱
     */
    @ApiModelProperty("是否封箱")
    private String seal;

    private List<SysOss> oss;

    /**
     * 保管密码
     */
    @ApiModelProperty("保管密码")
    private String password;

    /**
     * 上架密码
     */
    @ApiModelProperty("上架密码")
    private String putPassword;

    /**
     * 标签打印次数
     */
    @ApiModelProperty("标签打印次数")
    private Integer printFlag;

    private List<PutDtlVo> items;
}
